<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="root">
        <h2>{{name}}你好</h2>
        <button v-on:click="showInfo">点击提示信息</button>
        <!-- <button @click="showInfo">点击提示信息</button> -->


    </div>
    <script>
        Vue.config.productionTip = false
        const x = new Vue({
            el: '#root',
            data: {
                name: '王万兴',
            },
            methods: {

            }
        })
    </script>
</body>

</html>